package com.scau.hwadee.examination.mapper;

import com.scau.hwadee.examination.entity.Textbook;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author YHX
 * @date 2019/7/29  9:02
 * @description
 */
public interface TextbookMapper {
  int deleteByPrimaryKey(String tbIsbn);

  int insert(Textbook record);

  int insertSelective(Textbook record);

  Textbook selectByPrimaryKey(String tbIsbn);

  int updateByPrimaryKeySelective(Textbook record);

  int updateByPrimaryKey(Textbook record);

  Textbook selectTextBookOfCourse(@Param("courseId") String courseId);

  List<Textbook> selectAllTextbook(@Param("pageNum") int pageNum,
                                   @Param("pageSize") int pageSize);
}
